<?php
$section = "home";
$titre = _LB_HOME;
$link = $section;
Session::setBackLink($link);
//create cfer
$cfer = new Cfer(array(
	_LB_HOME => APPLICATION_URL_FO,
));
$page = new Static_Page();
$page->query("SELECT * FROM STATIC_PAGE WHERE CODE = 'home'");
$page->fetch();

$event = new Event();
$event->DISABLED = 0;
$event->orderBy("ID DESC");
$event->limit(5);
$event->find();

$press = new Press();
$press->DISABLED = 0;
$press->orderBy("ID DESC");
$press->limit(5);
$press->find();

$bsLeft = Business_Solution::getSubItem(0);
Session::setBackCfer($link, $cfer->getCferArray());
$smarty->assign('cfer', $cfer);
$smarty->assign('page', $page);
$smarty->assign('event', $event);
$smarty->assign('press', $press);
$smarty->assign('bsLeft', $bsLeft);
$smarty->assign('titre', $titre);
$smarty->display("home.html");